package cn.xluobo.business.wechat.miniapp.course.controller;

import cn.xluobo.business.sc.course.domain.req.time.ReqSearchScClaTimeAttend;
import cn.xluobo.business.sc.course.domain.resp.time.RespClaTimeAttend;
import cn.xluobo.business.wechat.miniapp.course.service.WechatMiniClaTimeAttendService;
import cn.xluobo.core.api.APIResponse;
import cn.xluobo.core.page.RespPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：KingLong
 * @date ：Created in 2020/10/22 12:49
 */
@RestController
@RequestMapping("/api/wechat/miniapp/{appId}/cla/time/attend")
public class WechatMiniClaTimeAttendController {

    @Autowired
    private WechatMiniClaTimeAttendService wechatMiniClaTimeAttendService;

    /**
     * 列表
     *
     * @param reqSearchScClaTimeAttend
     * @return
     */
    @GetMapping("/searchAttendList")
    public APIResponse searchAttendList(ReqSearchScClaTimeAttend reqSearchScClaTimeAttend) {
        RespPage<RespClaTimeAttend> respPage = wechatMiniClaTimeAttendService.searchAttendList(reqSearchScClaTimeAttend);
        return APIResponse.toAPIResponse(respPage);
    }
}
